export const rules = {
    jarName: [
        { required: true, message: '请输入储液罐', trigger: 'blur' },
        { min: 2, max: 8, message: '储液罐名长度2-8位', trigger: 'blur' },
    ],
    jarCode: [
        { required: true, message: '请输入储液罐编码', trigger: 'blur' },
        { min: 2, max: 20, message: '储液罐编码长度2-20位', trigger: 'blur' },
        {pattern:new RegExp(/^[0-9a-zA-Z]{2,}$/,'g'),message:"编码只允许包含字母与数字",trigger: 'blur' }
    ],
    lineCode: [
        { required: true, message: '请选择所属产线', trigger: 'change' }
    ],
    deviceCode: [
        { required: true, message: '请选择关联设备', trigger: 'change' }
    ],
    jarVolume: [
        { required: true, message: '请输入储液罐总容量', trigger: 'blur' }
    ],
    jarHeight: [
        { required: true, message: '请输入储液罐高度', trigger: 'blur' }
    ],
    jarDiameter: [
        { required: true, message: '请输入储液罐直径', trigger: 'blur' }
    ],
    jarLeader: [
        { required: true, message: '请输入储液罐负责人', trigger: 'blur' }
    ],
    jarProportion: [
        { required: true, message: '请输入储液罐换算比例', trigger: 'blur' }
    ],
    jarLocation: [
        { required: true, message: '请输入储液罐位置', trigger: 'blur' }
    ],
    jarThreshold: [
        { required: true, message: '请输入储液罐变化阈值', trigger: 'blur' }
    ],
}